package com.one.service;

import com.one.util.RequestReturn;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;



/**
 * @author: tzy
 * @create: 2022/1/19
 * @FileName: CommentService
 * @Description: 评论业务层接口
 */
@FeignClient(name = "street-tzy")
public interface CommentService {
    /**
     * @author: tzy
     * @date: 2022/1/19
     * @return: com.one.util.RequestReturn<com.one.vo.ProductVo>
     * @Description: 增加评论
     */
    @GetMapping("/addComment")
    RequestReturn<String> addComment(@RequestParam("commentImage") String commentImage,
                                     @RequestParam("content") String content,
                                     @RequestParam("ordersId") Integer ordersId);

    /**
     * @author: tzy
     * @date: 2022/1/19
     * @return: com.one.util.RequestReturn<com.one.util.PageUtil<java.util.List<com.one.vo.CommentVo>>>
     * @Description: 删除评论
     */
    @GetMapping("/removeComment")
    RequestReturn<String> removeComment(@RequestParam("commentId") Integer commentId);

}

